package com.guchenbo.springboot.enable;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
@GcbEnable
@GcbEnable2
@GcbEnable3

@EnableTransactionManagement
public class GcbEnableApplication {
    public static void main(String[] args) {
        SpringApplication springApplication = new SpringApplication(GcbEnableApplication.class);
        springApplication.setWebApplicationType(WebApplicationType.NONE);
        springApplication.run(args);
//        SpringApplication.run(GcbEnableApplication.class, args);
//
//        AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext();
//        applicationContext.register(GcbConfiguration.class);
////        applicationContext.register(GcbBeanBeanDefinitionRegistryPostProcessor.class);
////        applicationContext.register(GcbBeanBeanDefinitionRegistryPostProcessor2.class);
//        applicationContext.refresh();
//
//        applicationContext.getBean(DemoService.class).hello();
    }
}
